Benjamin Otte [Wed, 8 Aug 2018 20:16:24 +0000 (22:16 +0200)]
dialog: Port binding to use shortcuts
Emmanuele Bassi [Wed, 5 Feb 2020 17:13:44 +0000 (17:13 +0000)]
text: Port to widget shortcuts
Emmanuele Bassi [Wed, 5 Feb 2020 17:08:37 +0000 (17:08 +0000)]
Allow installing bindings bound to actions
This is just convenience code around GtkShortcut, just like bindings for
signal emission and callback invocation.
Emmanuele Bassi [Wed, 5 Feb 2020 17:08:14 +0000 (17:08 +0000)]
shortcut: Add action activation
Emmanuele Bassi [Wed, 5 Feb 2020 17:06:51 +0000 (17:06 +0000)]
bindings: Export action activation internally
We're going to use it, just like we use the signal emission code.
Benjamin Otte [Wed, 8 Aug 2018 17:10:27 +0000 (19:10 +0200)]
shortcut: Add gtk_shortcut_set_callback()
... and gtk_widget_class_add_binding() to go with it.
This allows shortcuts to invoke manually added callbacks.
Benjamin Otte [Sun, 5 Aug 2018 02:30:15 +0000 (04:30 +0200)]
combobox: Port bindings to use shortcuts
Benjamin Otte [Sun, 5 Aug 2018 02:20:58 +0000 (04:20 +0200)]
assistant: Port bindings to use shortcuts
Benjamin Otte [Sun, 5 Aug 2018 02:10:11 +0000 (04:10 +0200)]
trigger: Add an alternative trigger
And use it.
I just added it to GtkWidget just to show that I can.
The real reason I want it is for gamepad/joystick triggers
in games, so that it becomes possible to select 2 different
triggers (gamepad and keyboard) for the same shortcut.
Matthias Clasen [Sun, 15 Mar 2020 13:49:50 +0000 (09:49 -0400)]
shortcut: Add GtkShortcutTrigger
Triggers are meant to describe how to trigger a shortcut.
So far only a keyval + modifiers trigger exists.
Benjamin Otte [Sat, 4 Aug 2018 10:30:53 +0000 (12:30 +0200)]
window: Port bindings to use shortcuts
Benjamin Otte [Sat, 4 Aug 2018 10:27:30 +0000 (12:27 +0200)]
bindings: Add more variant types
Also marshal types that the code in gtkbindings.c doesn't use. These
will be used by gtk_widget_class_add_binding_signal().
Benjamin Otte [Sat, 4 Aug 2018 10:16:00 +0000 (12:16 +0200)]
widget: Add gtk_widget_class_add_shortcut()
This allows adding shortcuts as a replacement for keybindings.
Benjamin Otte [Sat, 4 Aug 2018 10:14:13 +0000 (12:14 +0200)]
gtk: Add GtkShortcut
This is the base class for what is about to take over all sorts of
keyboard shortcuts. The initial version barely deals with keybindings.
Benjamin Otte [Sat, 4 Aug 2018 09:01:32 +0000 (11:01 +0200)]
bindings: Split out function to invoke an action signal
We want to use that in shortcuts later.
Benjamin Otte [Mon, 30 Jul 2018 04:02:20 +0000 (06:02 +0200)]
shortcutcontroller: Introduce
This is a very barebones controller that currently does nothing but
activate the binding signals. Yay.
And because we have bindings on every widget (Yes, a GtkGrid has a
keybinding - 2 in fact), we need that controller everywhere.
Benjamin Otte [Tue, 31 Jul 2018 20:21:17 +0000 (22:21 +0200)]
bindings: Make gtk_binding_parse_signal() use GVariantBuilder
And because it's the last user of GtkBindingArg and
gtk_binding_entry_add_signall(), also remove those two.
Benjamin Otte [Tue, 31 Jul 2018 19:34:52 +0000 (21:34 +0200)]
bindings: Parse into GVariantBuilder directly
Avoids the indirection via GtkBindingArg
Benjamin Otte [Tue, 31 Jul 2018 19:32:34 +0000 (21:32 +0200)]
bindings: Add gtk_binding_entry_add_signal_variant()
This function is the replacement for
gtk_binding_entry_add_signall().
The GVariant will be demarshalled and passed to the action signal upon
binding activation. The same rules apply as used to apply for
GtkBindingArg, in that long, double and string args are now replaced by
"x", "d" and "s" variant types.
Benjamin Otte [Tue, 31 Jul 2018 18:09:03 +0000 (20:09 +0200)]
bindings: Replace GtkBindingArg arguments with GVariant
This only replaces invocation, not yet parsing.
Matthias Clasen [Thu, 19 Mar 2020 01:20:21 +0000 (01:20 +0000)]
Merge branch 'wip/chergert/speedup-char_is_invisible' into 'master'
textbtree: short-circuit visibility check when possible
See merge request GNOME/gtk!1534
Christian Hergert [Wed, 18 Mar 2020 18:32:46 +0000 (11:32 -0700)]
textbtree: short-circuit visibility check when possible
If we have never seen a GtkTextTag in the GtkTextTagTable with the
invisible bit set, then we do not need to go through the process of
checking the accumulated tags.
Not using invisible tags is overwhelmingly the common case.
Matthias Clasen [Wed, 18 Mar 2020 12:28:15 +0000 (12:28 +0000)]
Merge branch 'wip/jimmac/adwaitadark-lighten-switches' into 'master'
Adwaita: dark switches/check/radios
Closes #2461
See merge request GNOME/gtk!1532
Matthias Clasen [Wed, 18 Mar 2020 12:27:08 +0000 (12:27 +0000)]
Merge branch 'wip/chergert/textview-fix-gdk_event_unref' into 'master'
textview: use gdk_event_unref()
Closes #2520
See merge request GNOME/gtk!1531
Jakub Steiner [Fri, 6 Mar 2020 12:13:37 +0000 (13:13 +0100)]
Adwaita: dark switches/check/radios
- lighten up radios, switches and checkboxes
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2461
Matthias Clasen [Wed, 18 Mar 2020 01:48:45 +0000 (21:48 -0400)]
emojichooser: Fix keynav
Make arrow and tab keys work in the
variations popover again.
Matthias Clasen [Wed, 18 Mar 2020 00:46:57 +0000 (20:46 -0400)]
window: Set min size properly
When we are mapping the window, we need to compute
a proper min size, otherwise the 1, 1 sticks and
makes all windows shrinkable to nothing.
Matthias Clasen [Wed, 18 Mar 2020 00:32:23 +0000 (20:32 -0400)]
Revert "Adwaita: dark switches/check/radios"
This reverts commit
435992600f907d58cc2f9ae52a969a49d2f9f286.
This causes warnings from the CSS parser.
Matthias Clasen [Tue, 17 Mar 2020 21:24:09 +0000 (17:24 -0400)]
popover: Add keynav keybindings
The shortcut controllers are limited to same-native,
so we need to duplicate the Tab and arrow key bindings
for focus handling, as well as the Enter bindings for
activation.
Christian Hergert [Tue, 17 Mar 2020 20:23:57 +0000 (13:23 -0700)]
textview: use gdk_event_unref()
Fixes #2520
Matthias Clasen [Tue, 17 Mar 2020 20:23:03 +0000 (16:23 -0400)]
Assorted migration guide updates
Mention GdkEvent, GdkPopup, GdkToplevel, GtkIconTheme
changes.
Jakub Steiner [Tue, 17 Mar 2020 10:05:26 +0000 (11:05 +0100)]
Merge branch 'wip/jimmac/adwaitadark-lighten-switches'
Jakub Steiner [Fri, 6 Mar 2020 12:13:37 +0000 (13:13 +0100)]
Adwaita: dark switches/check/radios
- lighten up radios, switches and checkboxes
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2461
Matthias Clasen [Tue, 17 Mar 2020 05:12:12 +0000 (05:12 +0000)]
Merge branch 'emoji-chooser-fixes' into 'master'
Emoji chooser fixes
See merge request GNOME/gtk!1530
Matthias Clasen [Tue, 17 Mar 2020 04:28:57 +0000 (00:28 -0400)]
Adwaita: Fix focus in emoji chooser
Matthias Clasen [Tue, 17 Mar 2020 04:07:37 +0000 (00:07 -0400)]
emojichooser: Make the variation picker work again
We can't attach popovers to unsuspecting widget anymore.
Emmanuele Bassi [Mon, 16 Mar 2020 17:08:53 +0000 (17:08 +0000)]
Merge branch 'respect-text-len-gtk4' into 'master'
imcontextwayland: Honour len argument in gtk_im_context_wayland_set_surrounding
See merge request GNOME/gtk!1529
Robert Mader [Mon, 16 Mar 2020 15:53:18 +0000 (16:53 +0100)]
imcontextwayland: Honour len argument in gtk_im_context_wayland_set_surrounding
Clients may pass not `NULL`-terminated strings as the function takes a
`len` argument. Use that argument.
Matthias Clasen [Sun, 15 Mar 2020 00:47:03 +0000 (00:47 +0000)]
Merge branch 'x11-props' into 'master'
Drop X11-specific properties
See merge request GNOME/gtk!1526
Matthias Clasen [Sat, 14 Mar 2020 14:06:57 +0000 (10:06 -0400)]
Drop GdkToplevel:accept-focus/:focus-on-map
These properties were only ever implemented in the
X11 backend. If you want to use them, just use the
X properties directly.
Matthias Clasen [Sat, 14 Mar 2020 14:05:11 +0000 (10:05 -0400)]
Drop focus-related properties
We don't use these, and they are only implemented on X11.
Matthias Clasen [Sat, 14 Mar 2020 19:24:48 +0000 (15:24 -0400)]
Drop GdkToplevel:keep-above/below
These properties were only ever implemented in the X11
backend. If you want to keep windows above or below
on X11, just use the X properties.
Matthias Clasen [Sat, 14 Mar 2020 05:43:30 +0000 (01:43 -0400)]
window: Drop keep above/below
Matthias Clasen [Sat, 14 Mar 2020 05:43:15 +0000 (01:43 -0400)]
tests: Stop using keep above/below
Matthias Clasen [Sat, 14 Mar 2020 05:39:35 +0000 (01:39 -0400)]
Drop GdkToplevel:sticky
This was only ever implemented on X11. If you
want to use it there, just use the X properties
yourself.
Matthias Clasen [Sat, 14 Mar 2020 05:28:43 +0000 (01:28 -0400)]
window: Drop sticky
This is an X11-only concept that we don't have
on Wayland.
Matthias Clasen [Sat, 14 Mar 2020 05:40:40 +0000 (01:40 -0400)]
tests: Stop sticking windows
Matthias Clasen [Sat, 14 Mar 2020 13:19:35 +0000 (13:19 +0000)]
Merge branch 'window-attach' into 'master'
window: Drop gtk_window_set_attached_to
See merge request GNOME/gtk!1527
Matthias Clasen [Sat, 14 Mar 2020 05:59:22 +0000 (01:59 -0400)]
window: Drop gtk_window_set_attached_to
We are no longer attaching windows to widgets.
Matthias Clasen [Sat, 14 Mar 2020 05:23:56 +0000 (01:23 -0400)]
gdk: Documentation fixes
Matthias Clasen [Sat, 14 Mar 2020 05:23:09 +0000 (01:23 -0400)]
Document gdk_toplevel_set_modal
Matthias Clasen [Sat, 14 Mar 2020 05:22:17 +0000 (01:22 -0400)]
Small documentation fixes
Matthias Clasen [Sat, 14 Mar 2020 05:11:56 +0000 (01:11 -0400)]
Update gtk docs
Updates for recent api renames and removals.
Matthias Clasen [Sat, 14 Mar 2020 04:53:59 +0000 (00:53 -0400)]
NEWS: Updates
Matthias Clasen [Sat, 14 Mar 2020 03:35:31 +0000 (03:35 +0000)]
Merge branch 'x11-resize' into 'master'
x11: Update surface size for popups too
See merge request GNOME/gtk!1525
Matthias Clasen [Sat, 14 Mar 2020 01:33:23 +0000 (21:33 -0400)]
x11: Update surface size for popups too
Without this, the back buffers of the wrong size
keep being used, causing flickery misdraws, as
seen when expanding the expander in the popover
in widget-factory.
Matthias Clasen [Fri, 13 Mar 2020 20:36:54 +0000 (20:36 +0000)]
Merge branch 'fix-tools-tests' into 'master'
Fix tools tests
See merge request GNOME/gtk!1524
Matthias Clasen [Fri, 13 Mar 2020 19:48:33 +0000 (15:48 -0400)]
testsuite: Specify the test protocol
If we don't specify protocol: 'tap', meson things
all is good even though my test yells "not ok".
Matthias Clasen [Fri, 13 Mar 2020 19:52:43 +0000 (15:52 -0400)]
Update the ui file conversion output
This changed because the popover property got renamed.
Matthias Clasen [Fri, 13 Mar 2020 19:52:25 +0000 (15:52 -0400)]
testsuite: Update the settings test output
Matthias Clasen [Fri, 13 Mar 2020 19:34:54 +0000 (15:34 -0400)]
testsuite: Update tools tests
These tests need to test GTK4 ui file syntax.
Matthias Clasen [Fri, 13 Mar 2020 19:11:07 +0000 (15:11 -0400)]
testsuite: Actually run tools tests
The script was looking in the wrong place for the tests.
Matthias Clasen [Fri, 13 Mar 2020 18:40:46 +0000 (18:40 +0000)]
Merge branch 'wip/baedert/test-cflags' into 'master'
Pass (almost) all our cflags to tests, testsuite, examples, demos, ...
See merge request GNOME/gtk!1516
Piotr Drąg [Fri, 13 Mar 2020 16:32:39 +0000 (17:32 +0100)]
Update POTFILES.in
Matthias Clasen [Fri, 13 Mar 2020 15:49:02 +0000 (15:49 +0000)]
Merge branch 'wayland-max-cursor-scale' into 'master'
wayland: Stop capping cursor scales
See merge request GNOME/gtk!1522
Matthias Clasen [Fri, 13 Mar 2020 15:13:02 +0000 (11:13 -0400)]
wayland: Stop capping cursor scales
We don't load entire themes anymore, so we can
easily accomodate larger cursor scales now.
Matthias Clasen [Fri, 13 Mar 2020 15:09:47 +0000 (15:09 +0000)]
Merge branch 'update-broadway' into 'master'
Update broadway
See merge request GNOME/gtk!1521
Matthias Clasen [Fri, 13 Mar 2020 14:38:51 +0000 (14:38 +0000)]
Merge branch 'popover-accessible-private' into 'master'
a11y: Drop the private from GtkPopoverAccessible
See merge request GNOME/gtk!1520
Alexander Larsson [Fri, 13 Mar 2020 14:26:22 +0000 (15:26 +0100)]
broadway: Inherit frame clock from parent surface
Alexander Larsson [Fri, 13 Mar 2020 13:35:43 +0000 (14:35 +0100)]
broadway: Keep popups above their parent
We set the parent as a "transient parent" for popups, which means
they will not be stacked below the parent.
Alexander Larsson [Fri, 13 Mar 2020 13:33:07 +0000 (14:33 +0100)]
broadway: Track surface position correctly
surface->x/y (and various x,y arguments) should be in the parent
coordinates, so treat it as such. We also keep track of the root coords
as these are needed for popup positioning.
Also, drop the isTemp property server side and the weird initial
placement at (100, 100) in the daemon. We now fully control window
placement from the client instead. If this is not we want we should do
a serious design for that but until then lets do the simplest thing.
Alexander Larsson [Fri, 13 Mar 2020 09:49:44 +0000 (10:49 +0100)]
broadway: Correctly track surface visibility in client
We forgot to unset visible when hiding surfaces
Alexander Larsson [Fri, 13 Mar 2020 07:56:56 +0000 (08:56 +0100)]
broadway: Ensure images are decoded, not only loaded
In firefox, onload will trigger when the image is loaded, but at
that point it may not be decoded yet so showing it will sometimers
trigger flashes. We use the new decode() feature instead which ensures
both that the image is loaded *and* decoded, thus fixing the flashes.
Alexander Larsson [Fri, 13 Mar 2020 07:10:41 +0000 (08:10 +0100)]
broadway: Fix image updates for firefox
For whatever reason we need to assign the function to a variable
to be able to call it.
Alexander Larsson [Thu, 12 Mar 2020 10:12:01 +0000 (11:12 +0100)]
broadway: Handle browser hidpi scale factor
Matthias Clasen [Fri, 13 Mar 2020 13:50:36 +0000 (09:50 -0400)]
a11y: Drop the private from GtkPopoverAccessible
It is not used, and empty structs upset msvc.
Matthias Clasen [Fri, 13 Mar 2020 13:34:57 +0000 (13:34 +0000)]
Merge branch 'present-toplevel-2' into 'master'
surface api splitup
See merge request GNOME/gtk!1511
Bastien Nocera [Fri, 13 Mar 2020 12:36:10 +0000 (12:36 +0000)]
Merge branch 'wip/hadess/fix-remote-filechooser-main' into 'master'
Fix crasher/warnings when browsing remote filesystems
Closes #2482
See merge request GNOME/gtk!1490
Matthias Clasen [Thu, 12 Mar 2020 11:01:30 +0000 (07:01 -0400)]
win32: Build fixes
These fixes were done blindly, to make the ci pass,
and will need review by somebody with access to an
actual win32 system to make sure the surface subtypes
are implemented properly.
Timm Bäder [Fri, 13 Mar 2020 06:17:46 +0000 (06:17 +0000)]
Merge branch 'align-docs-fixes' into 'master'
gtk: Tweak GTK_ALIGN_BASELINE docs
See merge request GNOME/gtk!1518
Matthew Leeds [Thu, 12 Mar 2020 19:36:09 +0000 (12:36 -0700)]
gtk: Tweak GTK_ALIGN_BASELINE docs
Matthias Clasen [Thu, 12 Mar 2020 04:34:45 +0000 (00:34 -0400)]
win32: implement subtypes
Matthias Clasen [Mon, 9 Mar 2020 20:31:38 +0000 (13:31 -0700)]
Fix up gdk docs
Matthias Clasen [Mon, 9 Mar 2020 20:46:42 +0000 (13:46 -0700)]
surface: document gdk_surface_translate_coordinates
Matthias Clasen [Tue, 10 Mar 2020 11:24:04 +0000 (07:24 -0400)]
toplevel: require GdkSurface
Matthias Clasen [Tue, 10 Mar 2020 11:23:49 +0000 (07:23 -0400)]
popup: require GdkSurface
Matthias Clasen [Mon, 9 Mar 2020 19:16:01 +0000 (12:16 -0700)]
Drop root coordinates from _gdk_device_query_state
Callers are not using them anyway. Update all callers.
Matthias Clasen [Mon, 9 Mar 2020 19:03:48 +0000 (12:03 -0700)]
Drop mwm hints from api
The GdkWMDecoration and GdkWMFunction enums
are no longer used in the api, so move them
to the x11 backend where they are used.
Matthias Clasen [Mon, 9 Mar 2020 18:49:59 +0000 (11:49 -0700)]
Move fullscreen-mode to GdkToplevel
Matthias Clasen [Mon, 9 Mar 2020 18:38:08 +0000 (11:38 -0700)]
Move edge-constraints to GdkToplevel
Matthias Clasen [Wed, 11 Mar 2020 20:19:58 +0000 (16:19 -0400)]
surface: Drop unused vfuncs
These are now entirely unused.
Matthias Clasen [Wed, 11 Mar 2020 20:19:40 +0000 (16:19 -0400)]
quartz: Drop unused vfuncs
Matthias Clasen [Mon, 9 Mar 2020 17:41:44 +0000 (10:41 -0700)]
win32: Drop some unused vfuncs
toplevel_resize is unused in the frontend.
Matthias Clasen [Mon, 9 Mar 2020 17:35:30 +0000 (10:35 -0700)]
wayland: Drop some unused vfuncs
show, withdraw, raise, lower, toplevel_resize,
present_popup,
are all unused in the frontend.
Matthias Clasen [Mon, 9 Mar 2020 17:35:00 +0000 (10:35 -0700)]
x11: Drop some unused vfuncs
show, withdraw, raise, lower are all unused in the frontend.
Matthias Clasen [Mon, 9 Mar 2020 17:34:08 +0000 (10:34 -0700)]
broadway: Drop some unused vuncs
show, withdraw, raise, lower, present_popup
are all unused by the frontend.
Matthias Clasen [Wed, 11 Mar 2020 20:16:33 +0000 (16:16 -0400)]
surface: Drop gdk_surface_show
No longer used.
Matthias Clasen [Mon, 9 Mar 2020 17:25:06 +0000 (10:25 -0700)]
win32: Stop using gdk_surface_show
Matthias Clasen [Mon, 9 Mar 2020 17:24:52 +0000 (10:24 -0700)]
broadway: Stop using gdk_surface_show
Matthias Clasen [Mon, 9 Mar 2020 17:24:30 +0000 (10:24 -0700)]
wayland: Drop dead code